using namespace std;
#include <iostream>

int main()
{
    string x, y, z;
    cin >> x >> y >> z;
    string pr(string a);
    if (pr(x) == "Wrong input" or pr(y) == "Wrong input" or pr(z) == "Wrong input"){
     cout << "Wrong input";
    }
    else{
     cout << pr(x) << pr(y) << pr(z);
    }
    return 0;
}
string pr(string a)
{
if (a == "zero"){
return "0";
}
else if (a == "one"){
return "1";
}
else if (a == "two"){
return "2";
}
else if (a == "three"){
return "3";
}
else if (a == "four"){
return "4";
}
else if (a == "five"){
return "5";
}
else if (a == "six"){
return "6";
}
else if (a == "seven"){
return "7";
}
else if (a == "eight"){
return "8";
}
else if (a == "nine"){
return "9";
}
else{
return "Wrong input";
}
}